package sma.iss.sort;

import java.util.Comparator;

import sma.iss.Position;

/**
 * To sort Position according score
 * 
 * @author smarsoll
 * 
 */
public class ScoreComparator implements Comparator<Position> {

	public int compare(Position pos1, Position pos2) {
		if (pos1.getScore() < pos2.getScore()) {
			return +1;
		} else if (pos1.getScore() > pos2.getScore()) {
			return -1;
		}
		return 0;
	}

}
